package com.ruoyi.business.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 结算对象 sd_settlement
 * 
 * @author xx
 * @date 2020-04-03
 */
public class Settlement extends BaseEntity{

    /** 主键id */
    private Long id;

    /** 所属商户id */
//    @Excel(name = "所属商户id")
    private Long userId;

    /** 查询数据用到 */
    private List<Long> userIds;

    @Excel(name = "所属商户")
    private String userName;

    /** 订单表id */
    @Excel(name = "充值记录id")
    private Long orderId;

    /** 业务表id */
    @Excel(name = "商家业务id")
    private Long businessId;

    /** 佣金 */
    @Excel(name = "佣金")
    private Double commission;

    /** 业务类型 来源字典表 */
    private Integer businessType;

    public List<Long> getUserIds() {
        return userIds;
    }

    public void setUserIds(List<Long> userIds) {
        this.userIds = userIds;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setId(Long id){
        this.id = id;
    }

    public Long getId(){
        return id;
    }
    public void setUserId(Long userId){
        this.userId = userId;
    }

    public Long getUserId(){
        return userId;
    }
    public void setOrderId(Long orderId){
        this.orderId = orderId;
    }

    public Long getOrderId(){
        return orderId;
    }
    public void setBusinessId(Long businessId){
        this.businessId = businessId;
    }

    public Long getBusinessId(){
        return businessId;
    }
    public void setCommission(Double commission){
        this.commission = commission;
    }

    public Double getCommission(){
        return commission;
    }
    public void setBusinessType(Integer businessType){
        this.businessType = businessType;
    }

    public Integer getBusinessType(){
        return businessType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("orderId", getOrderId())
            .append("businessId", getBusinessId())
            .append("commission", getCommission())
            .append("businessType", getBusinessType())
            .append("createTime", getCreateTime())
            .toString();
    }
}
